<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小米商城</title>
    <link rel="icon" href="/mi/imgs/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/mi/css/common/header.css">
    <link rel="stylesheet" href="/mi/css/index.css">
    <link rel="stylesheet" href="/mi/css/common/page_bottom.css">
    <link rel="stylesheet" href="/mi/css/iconfont/iconfont.css">
    <link rel="stylesheet" href="/mi/css/common/mi_tool.css">
    <style>
        .list-shop .shop {
            float: left;
        }

        .page-content .list-shop {

        }
    </style>
</head>
<body>
<%@include file="common/header.jsp" %>
<div class="banner">
    <div class="content" >

        <!-- 轮播图左侧标签 -->
        <div class="left_label">
            <ul>
                <c:forEach items="${categoryList}" var="everyc">
                    <li onmouseover="show_this(this)"  value="${everyc.categoryId}"><a
                            href="">${everyc.name}<span>></span></a>

                    </li>

                </c:forEach>

            </ul>
        </div>
        <div class="nav-content" id="indexshow" onmouseover="show_it()" onmouseout="hide_this()" >
        </div>
        <!-- 轮播图图片 -->
        <ul id="item">
            <li class="item active"><a href="/mi/cart/add_cart"><img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/918820682e4a490221cfd92b24c14b86.jpg?thumb=1&w=1022&h=383&f=webp&q=90"></a>
            </li>
            <li class="item"><a href="/mi/cart/add_cart"><img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/a532e33470d046b3f044d5ea49fc5e9e.png?thumb=1&w=1022&h=383&f=webp&q=90"></a>
            </li>
            <li class="item"><a href="/mi/cart/add_cart"><img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/67c7222fbcf98db942718eaf29f32297.jpg?thumb=1&w=1022&h=383&f=webp&q=90"></a>
            </li>
            <li class="item"><a href="/mi/cart/add_cart"><img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/93dd3a588aebaa0b01b4e826a70644b1.jpg?w=2452&h=920"></a>
            </li>
        </ul>

        <!-- 轮播图左右指针 -->
        <div id="btn-left"></div>
        <div id="btn-right"></div>


        <!-- 轮播图点 -->
        <ul id="point">
            <li class="point active" data-index="0"></li>
            <li class="point" data-index="1"></li>
            <li class="point" data-index="2"></li>
            <li class="point" data-index="3"></li>
        </ul>
    </div>
</div>

<div class="idx-adv containerss">
    <div class="laber">
        <a href="">
            <div class="laber-list laber-border1">
                <i class="iconfont">&#xe61a;</i>
                <p>保障服务</p>
            </div>
        </a>

        <a href="">
            <div class="laber-list laber-border1">
                <i class="iconfont">&#xe60d;</i>
                <p>企业团购</p>
            </div>
        </a>
        <a href="">
            <div class="laber-list laber-border2">
                <i class="iconfont">&#xe614;</i>
                <p>F码通道</p>
            </div>
        </a>
        <a href="">
            <div class="laber-list laber-border3">
                <i class="iconfont">&#xe602;</i>
                <p>米粉卡</p>
            </div>
        </a>
        <a href="">
            <div class="laber-list laber-border3">
                <i class="iconfont">&#xe609;</i>
                <p>以旧换新</p>
            </div>
        </a>
        <a href="">
            <div class="laber-list">
                <i class="iconfont">&#xe666;</i>
                <p>话费充值</p>
            </div>
        </a>
    </div>
    <ul class="adv-ul">
        <li class="adv-li">
            <a href="">
                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/d8a6d6d37904e22c72130e3e4ec79b41.jpg?w=632&h=340"
                     alt="">
            </a>
        </li>
        <li class="adv-li">
            <a href="">
                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/b30177d629bfbe2fb42251c1b8538f7b.jpg?w=632&h=340"
                     alt="">
            </a>
        </li>
        <li class="adv-li">
            <a href="">
                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/9f18ac756fa2cedb16ea429b9c0001af.png?w=632&h=340"
                     alt="">
            </a>
        </li>
    </ul>


</div>

<!-- 主体部分 -->
<div class="page-content">
    <!-- 主体的限时抢购 -->
    <div class="content-adv container">
        <div class="title clear">
            <p>小米秒杀</p>
            <a href="">
                <div class="next iconfont">&#xe612;</div>
            </a>
            <a href="">
                <div class="prev iconfont">&#xe610;</div>
            </a>
        </div>
        <div class="list clear">
            <div id="list-limit" class="list-limit">
                <h2>00:00 场</h2>
                <h3 class="iconfont">⚡</h3>
                <p id="lastDay">本场已经结束</p>
                <div>00</div>
                <span>:</span>
                <div>00</div>
                <span>:</span>
                <div>00</div>

            </div>
            <ul class="list-adv">
                <li>
                    <a href="/mi/tVSeckillJsp?killId=1" target="_blank">
                        <img src="https://cdn.cnbj0.fds.api.mi-img.com/b2c-shopapi-pms/pms_1628162459.67483588.jpg"
                             alt="">
                        <h2>小米电视 大师 77" OLED</h2>
                        <p>小米电视 大师 77" OLED</p>
                        <span>17999元</span>
                        <i>19999元</i>
                    </a>
                </li>
                <li><a href="/mi/boxseckill">
                    <img src="https://cdn.cnbj0.fds.api.mi-img.com/b2c-shopapi-pms/pms_1627877128.28898525.jpg"
                         alt="">
                    <h2>小米小爱英雄</h2>
                    <p>智能设备控制 | 海量曲库</p>
                    <span>120元</span>
                    <i>149.0元</i>
                </a></li>
                <li><a href="/mi/watchSeckillJsp?killId=2" target="_blank">
                    <img src="https://cdn.cnbj0.fds.api.mi-img.com/b2c-shopapi-pms/pms_1632679395.57195055.png"
                         alt="">
                    <h2>Xiaomi Watch Color 2</h2>
                    <p>117种运动模式 全天候血氧/睡眠
                    </p>
                    <span>599元</span>
                    <i>999元</i>
                </a></li>
                <li><a href="/mi/cart/add_cart">
                    <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/ab07e0fcbec3beb8b0f409db8bee8da4.jpg?thumb=1&w=200&h=200&f=webp&q=90"
                         alt="">
                    <h2>小米11 Ultra</h2>
                    <p>1.12"GN2 | 2K四微曲屏</p>
                    <span>5888元</span>
                    <i>5999元</i>
                </a></li>
            </ul>
        </div>
        <div class="big-adv">
            <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/f334fbd05d5681bb838fefd1c815d88c.jpg?thumb=1&w=1226&h=120&f=webp&q=90"
                 alt="">
        </div>
    </div>
    <!-- 主体的限时抢购 -->
    <!-- 手机 -->
    <div class="content-list  container">
        <div class="title clear">
            <p>手机</p>
            <a href="/mi/cart/add_cart">
                <i class="small-next iconfont">&#xe612;</i>
                <span>查看更多 </span>
            </a>
        </div>
        <div class="list-shop" style="width: 200px; margin-right: 37px">
            <div class="big-shop">
                <a href="/mi/cart/add_cart">
                    <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/c583f2edc613f1be20fa415910b13ce3.jpg?thumb=1&w=195&h=512&f=webp&q=90"
                         alt="">
                </a>
            </div>
        </div>
        <div class="list-shop" style="width: 1039px;
    margin-right: 0px;
    margin-left: -20px;">
            <c:forEach items="${productList}" var="phone">
                <div class="shop" style="cursor: pointer">
                    <a target="_blank" href="/mi/cart/add_cart?productId=${phone.productId}">
                        <img src="${phone.picImg}" alt="">
                        <h2>${phone.productName}</h2>
                        <p>1.12"GN2 | 2K四微曲屏</p>
                        <span>${phone.price}元</span>
                    </a>
                </div>
            </c:forEach>
        </div>


        <div class="big-adv">
            <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/01cc6a570d32a2ee09a2d5c2009a9968.jpg?thumb=1&w=1022&h=100&f=webp&q=90"
                 alt="">
        </div>
    </div>
    <!-- 手机 -->
    <!-- 家电 -->
    <div class="content-list  container">
        <div class="title clear">
            <p>家电</p>
            <a href="">
                <i class="small-next iconfont">&#xe612;</i>
                <span>查看更多 </span>

            </a>

        </div>
        <div class="list-shop">
            <div class="shop">
                <a href=""><img
                        src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/3d47879ec183e25a36e67e0219636e60.jpg?thumb=1&w=195&h=250&f=webp&q=90"
                        alt="" class="top-image"></a>
            </div>
            <div class="shop">
                <a href=""><img
                        src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/ca83e0294e7d725690b0576a1a4681e2.jpg?thumb=1&w=234&h=300&f=webp&q=90"
                        alt="" class="top-image"></a>
            </div>

        </div>
        <div class="list-shop">
            <div class="shop">
                <a href="">
                    <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/82ff5ea76730fdf6f91aba5d3b2e5739.jpg?thumb=1&w=200&h=200&f=webp&q=90"
                         alt="">
                    <h2>小米电视65" OLED</h2>
                    <p>小米电视65" OLED</p>
                    <span>6999元</span>

                </a>
            </div>
            <div class="shop">
                <a href="">
                    <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/c7c15101f2c8a652a4a0d069501d1e53.jpg?thumb=1&w=200&h=200&f=webp&q=90"
                         alt="">
                    <h2>小米电视6 至尊版 65英寸</h2>
                    <p>画质新境界</p>
                    <span>7799元</span>

                </a>
            </div>
        </div>
        <div class="list-shop">
            <div class="shop"><a href="">
                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/388b13bf52ab0d6a56bc9f195b5f1dd5.jpg?thumb=1&w=200&h=200&f=webp&q=90"
                     alt="">
                <h2>小米电视 ES55 2022款</h2>
                <p>多分区, 画质轻旗舰</p>
                <span>2999元</span>

            </a></div>
            <div class="shop"><a href="">
                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6bed167fc905bab57dee478bcf1e5e0d.JPG?thumb=1&w=200&h=200&f=webp&q=90"
                     alt="">
                <h2>米家互联网对开门冰箱 540L</h2>
                <p>重磅新品福利特惠</p>
                <span>2999元</span>

            </a></div>
        </div>
        <div class="list-shop">
            <div class="shop"><a href="">
                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/91bd66c0e6bf7a22d12a8b191da19078.jpg?thumb=1&w=188&h=188&f=webp&q=90"
                     alt="">
                <h2>米家超薄电磁炉</h2>
                <p>纤薄美学, 精准猛火</p>
                <span>499元</span>

            </a></div>
            <div class="shop"><a href="">
                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/7826279526dcce1e5a8b2eff2fa49784.jpg?thumb=1&w=188&h=188&f=webp&q=90"
                     alt="">
                <h2>米家集尘扫拖机器人</h2>
                <p>自动倒垃圾, 45天不沾尘</p>
                <span>2999元</span>

            </a></div>
        </div>
        <div class="list-shop">
            <div class="shop"><a href="">
                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/b8c63a2024528fe5410ebe669b7d2407.jpg?thumb=1&w=188&h=188&f=webp&q=90"
                     alt="">
                <h2>Redmi全自动伯伦洗衣机1A 8kg</h2>
                <p>一键操作, 父母都爱用</p>
                <span>849元</span>

            </a></div>
            <div class="shop"><a href="">
                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/55926d1b495899372e4235a110ab0a4f.jpg?thumb=1&w=188&h=188&f=webp&q=90"
                     alt="">
                <h2>米家插线板 快充版 27W</h2>
                <p>安全的大功率快充插线板</p>
                <span>69元</span>

            </a></div>
        </div>
        <div class="big-adv">
            <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/88e35cffc82cd98cd53172460067af17.jpg?thumb=1&w=1022&h=100&f=webp&q=90"
                 alt="">
        </div>
    </div>
    <!-- 家电 -->
    <!-- 智能 -->
    <div class="content-list  container">
        <div class="title clear">
            <p>智能</p>
            <a href="">
                <i class="small-next iconfont">&#xe612;</i>
                <span>查看更多 </span>

            </a>

        </div>
        <div class="list-shop">
            <div class="shop">
                <a href=""><img
                        src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/e1768bd133e9fd0236765c8abc98f8b3.png?thumb=1&w=195&h=250&f=webp&q=90"
                        alt="" class="top-image"></a>
            </div>
            <div class="shop">
                <a href=""><img
                        src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/ec383d223d9f38f442268df684c526f6.png?thumb=1&w=195&h=250&f=webp&q=90"
                        alt="" class="top-image"></a>
            </div>

        </div>
        <div class="list-shop">
            <div class="shop">
                <a href="">
                    <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/4d73fad85fb9f683109834a882ba15a6.jpg?thumb=1&w=188&h=188&f=webp&q=90"
                         alt="">
                    <h2>小米小爱音箱 Play</h2>
                    <p>听音乐,语音遥控家电</p>
                    <span>109元</span>

                </a>
            </div>
            <div class="shop">
                <a href="">
                    <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/314df4955a5f305de306155078bb103d.jpg?thumb=1&w=188&h=188&f=webp&q=90"
                         alt="">
                    <h2>小米路由器AX3000</h2>
                    <p>小米路由器AX3000</p>
                    <span>349元</span>

                </a>
            </div>
        </div>
        <div class="list-shop">
            <div class="shop"><a href="">
                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/c2af30d499323618f9abdaffd82b581b.jpg?thumb=1&w=188&h=188&f=webp&q=90"
                     alt="">
                <h2>Redimi路由器AX3000</h2>
                <p>疾速WIFI6, 更快一步</p>
                <span>269元</span>

            </a></div>
            <div class="shop"><a href="">
                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/3c6cce68620610981b4aada21da54547.png?thumb=1&w=188&h=188&f=webp&q=90"
                     alt="">
                <h2>小米全自动智能门锁 Pro</h2>
                <p>听音乐,语音遥控家电</p>
                <span>2199元</span>

            </a></div>
        </div>
        <div class="list-shop">
            <div class="shop"><a href="">
                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/f0914c60fa1ab807972541b4e2b1a4cd.jpg?thumb=1&w=188&h=188&f=webp&q=90"
                     alt="">
                <h2>小米智能门锁 E</h2>
                <p>告别钥匙, 畅想便捷生活</p>
                <span>999元</span>

            </a></div>
            <div class="shop"><a href="">
                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/e7c6e79433c883e1a022ec21402c1679.jpg?thumb=1&w=188&h=188&f=webp&q=90"
                     alt="">
                <h2>小米小爱音响</h2>
                <p>听音乐, 语音遥控家电</p>
                <span>99元</span>

            </a></div>
        </div>
        <div class="list-shop">
            <div class="shop"><a href="">
                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/3accd497afc0047cfbd40f442e3b17df.jpg?thumb=1&w=188&h=188&f=webp&q=90"
                     alt="">
                <h2>米家智能窗帘</h2>
                <p>窗帘开合随心控</p>
                <span>799元</span>

            </a></div>
            <div class="shop"><a href="">
                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/7d9e8308f5f55bfa69c5c7fadc7cb4aa.jpg?thumb=1&w=188&h=188&f=webp&q=90"
                     alt="">
                <h2>Redimi AirDots 2真无线蓝牙耳机</h2>
                <p>支持蓝牙5.0, 自动秒连, 拿起就能用</p>
                <span>79元</span>
            </a></div>
        </div>
        <div class="big-adv">
            <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/88e35cffc82cd98cd53172460067af17.jpg?thumb=1&w=1022&h=100&f=webp&q=90"
                 alt="">
        </div>
    </div>
    <!-- 智能 -->


    <!-- 视频内容 -->
    <div class="content-list  container">
        <div class="title clear">
            <p>视频</p>
            <a href="">
                <i class="small-next iconfont">&#xe612;</i>
                <span>查看更多 </span>

            </a>
        </div>
        <ul class="content-tv clear">
            <li>
                <a href=""><img
                        src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/e74c4ff741bcdfc5b28a48a43e4edc6d.jpg?thumb=1&w=333&h=203&f=webp&q=90"
                        alt=""></a>
                <div class="iconfont">&#xe615;</div>
                <p>2021年春季新品发布会第一场</p>
            </li>
            <li><a href=""><img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/101b19aca4bb489bcef0f503e44ec866.jpg?thumb=1&w=333&h=203&f=webp&q=90"
                    alt=""></a>
                <div class="iconfont">&#xe615;</div>
                <p>2021年春季新品发布会第一场</p>
            </li>
            <li><a href=""><img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/96563e75833ba4563bd469dd28203b09.jpg?thumb=1&w=333&h=203&f=webp&q=90"
                    alt=""></a>
                <div class="iconfont">&#xe615;</div>
                <p>2021年春季新品发布会第一场</p>
            </li>
            <li><a href=""><img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/2fd26bb99b723337a2f8eaba84f7d5bb.jpg?thumb=1&w=333&h=203&f=webp&q=90"
                    alt=""></a>
                <div class="iconfont">&#xe615;</div>
                <p>2021年春季新品发布会第一场</p>
            </li>
        </ul>

    </div>
    <!-- 视频内容 -->


</div>
<!-- 主体内容 -->
<!-- 底部公共部分 -->
<%@include file="common/mi_tool.jsp" %>
<%@include file="common/page-bottom.jsp" %>
<script type="text/javascript" src="/mi/plugins/jquery/jquery.min.js"></script>
<script type="text/javascript" src="/mi/js/index.js"></script>
<script>
    $(function () {
        $("#indexshow").load("/mi/indexshow", {pageNum: 1,categoryId:3});
    })
    function show_this(object) {
        document.getElementById("indexshow").style.display = "block";
        $("#indexshow").load("/mi/indexshow",{categoryId:object.value});
    }
    function hide_this() {
        document.getElementById("indexshow").style.display = "none";
    }
    function show_it() {
        document.getElementById("indexshow").style.display = "block";
    }

    let ui_helper_hidden_accessible = document.getElementsByClassName("ui-helper-hidden-accessible");
    // console.log(ui_helper_hidden_accessible[0])
    ui_helper_hidden_accessible[0].style.display = "none";
</script>
</body>
</html>